import request from "@/tools/request";

export const loadMyMessage=(pageSize,pageIndex,name,description)=>{
    return request.get('/role/pageFind',{
        params:{
            "pageSize":pageSize,
            "pageIndex":pageIndex,
            "name":name,
            "description":description,
        }
    })
}

export const addRole=(role)=>{
    return request.post('/role/addRole',role)
}


export const addMenuRole=(roleId,menuIds)=>{
    return request.post('/menu/addMenuRole/'+roleId,{menuIds:menuIds})
}

export const showMenuRole=(roleId)=>{
    return request.get('/menu/showMenuRole/'+roleId)
}